<!--  -->
<template>
  <div>
    <van-skeleton title :row="3" :loading="loading"/>
    <div class="no-data" v-if="!loading && list.length == 0">暂无知情同意书</div>
    <router-link
      v-else
      v-for="item in list"
      :key="item.informedConsentId"
      :to="`/consentDetail/${item.informedConsentId}`"
      class="vaccine-type"
    >
      <van-cell is-link :title="item.consentName"/>
    </router-link>
  </div>
</template>

<script>
import { consentList } from "@/api/user";
export default {
  data() {
    return {
      loading: true,
      list: []
    };
  },
  //方法集合
  methods: {},
  created() {
    consentList().then(res => {
      this.loading = false;
      this.list = res.data;
    });
  },
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {}
};
</script>
<style lang='scss' scoped>
</style>